import qs from 'qs'
import axios from 'axios'
let instance = axios.create()
const myaxios = {
    get(url,params){
        return instance({
            method:'GET',
            url,
            params
        })
    },
    post(url,params){
        return instance({
            method:'POST',
            url,
            data:qs.stringify(params)
        })
    }

}

export default myaxios